package juez

class User {
    String name
    String password
    String email
    String rol
    String institution
    
    String toString(){
        "${name}"
    }
    static hasMany=[solutions:Submition,competiciones:Competition,participa:Competition,clarify:Clarification]

    static constraints = {
        name(blank:false,unique:true)
        email(email:true,unique:true)
        password(password:true)
        rol(inList:["Administrador","competidor","observador"])
    }
}
